﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace CarLoanSystem.Web.Comman
{
    public class DALException : Exception
    {
        private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public override string Message
        {
            get
            {
                return base.Message;
            }
        }

        public DALException()
            : base()
        {
        }

        public DALException(string Message)
            : base(Message)
        {
        }

        public DALException(string Message, Exception InnerException)
            : base(Message, InnerException)
        {
            log.Error(InnerException.ToString());
        }

    }
}